docs: add missing period and align keywords in constants/float16#11849
Open
Planeshifter wants to merge 15 commits intodevelopfrom
Open
docs: add missing period and align keywords in constants/float16#11849Planeshifter wants to merge 15 commits intodevelopfrom
constants/float16#11849Planeshifter wants to merge 15 commits intodevelopfrom
Conversation
Added the `float` keyword (present in 51/53 = 96% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…onventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…amespace conventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…nventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…mespace conventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…entions Added the `mathematics` and `math` keywords (present in 51/53 = 96% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…onventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…amespace conventions Added the `ieee754` keyword (present in 52/53 = 98% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…nventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…mespace conventions Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…entions Added the `mathematics` and `math` keywords (present in 51/53 = 96% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
Added the `float16` keyword (present in 44/53 = 83% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
Added the `float` keyword (present in 51/53 = 96% of `constants/float16` siblings) to the package.json keywords array. https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
…nventions Added the trailing period to the package description (present in 52/53 = 98% of `constants/float16` siblings). https://claude.ai/code/session_011sBeKV2dRzvYJiudfJuS7V
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
constants/float16 outliers with namespace majority patternsconstants/float16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aligning outliers in
constants/float16with namespace majority patterns (random namespace pick, seed20260429).Description
This pull request normalizes
package.jsonmetadata across 15 outlier packages in@stdlib/constants/float16so that they conform to the patterns observed in the rest of the namespace. All edits are purely additive metadata fixes — keyword additions and one trailing-period restoration — that do not change any observable behavior, public signature, or test expectation.Namespace summary
@stdlib/constants/float16package.jsontop-level keys,package.jsonscripts/stdlib subkeys,package.jsonkeywords,package.jsondescription shape,manifest.jsonshape, README##/###section sequence,docs/types/index.d.tsshape,docs/repl.txtshape, dependencies / devDependencies sets.package.jsonkeywords (set-valued; 10 majority keywords, 14 outliers)package.jsondescription trailing period (scalar; 52/53 = 98% conformance, 1 outlier)package.jsontop-level key set (18 keys, 100% uniform); file tree of 8 universal files (100% uniform); emptydependencies/devDependencies/scripts/stdlib(100% uniform);docs/types/index.d.tsdeclare const FLOAT16_X: number;shape (100% uniform).##section sequence — only 26/53 (49%) follow[Usage, Examples]; remainder addC APIs(15) orSee Also(13). TheC APIssection is conditional on the package having a C native binding (manifest.json+include/*.h), which itself is intentional and not drift.See Alsocross-links are optional and per-package.manifest.json/include/*.hfiles (15-16/53) — present only on integer-valued constants that ship C bindings; legitimately absent on the floating-point constants. Conditional, not drift.@seetag — borderline at 41/53 = 77%, but adding@seerequires per-package research (Wikipedia / OEIS links) and is non-mechanical. Excluded as out of scope for an additive metadata pass.constants/*packages export single values rather than functions, so no semantic majority vote was meaningful. Documented and skipped.Per-outlier corrections
constants/float16/ln-twoAdded
floatkeyword (51/53 = 96% ofconstants/float16siblings carry it). Closes a one-keyword gap; no other changes.constants/float16/max-base10-exponentAdded
float16keyword (44/53 = 83%). Brings the package in line with the rest of the namespace; metadata-only.constants/float16/max-base10-exponent-subnormalAdded
float16keyword (44/53 = 83%). Same drift pattern as the rest of the*-base*-exponent*group.constants/float16/max-base2-exponentAdded
float16keyword (44/53 = 83%). Standardizes discoverability across the exponent constants.constants/float16/max-base2-exponent-subnormalAdded
float16keyword (44/53 = 83%). Mirrors the fix applied across the*-base*-exponent*group.constants/float16/max-safe-integerAdded
mathematicsandmathkeywords (51/53 = 96% each). Both safe-integer constants in the namespace had the same drift; this is themax-half.constants/float16/min-base10-exponentAdded
float16keyword (44/53 = 83%). Same drift pattern as itsmax-counterpart.constants/float16/min-base10-exponent-subnormalAdded
ieee754keyword (52/53 = 98%). The only package in the namespace lacking theieee754keyword; the constant is defined directly by the IEEE 754 standard.constants/float16/min-base2-exponentAdded
float16keyword (44/53 = 83%). Same drift pattern as the rest of the exponent group.constants/float16/min-base2-exponent-subnormalAdded
float16keyword (44/53 = 83%). Completes the exponent-group cleanup.constants/float16/min-safe-integerAdded
mathematicsandmathkeywords (51/53 = 96% each). Companion fix tomax-safe-integer.constants/float16/num-bytesAdded
float16keyword (44/53 = 83%). The package describes the byte size of a float16 value; the keyword belongs.constants/float16/precisionAdded
float16keyword (44/53 = 83%). Describes the float16 significand precision; the keyword belongs.constants/float16/sqrt-threeAdded
floatkeyword (51/53 = 96%). The package already carriesfloat16andfloating-point;floatwas the lone gap.constants/float16/ln-halfAdded the trailing period to the
descriptionfield (52/53 = 98% of namespace siblings end thedescriptionstring with a period). Pure punctuation fix.Questions
No.
Other
Validation audit
Three independent agents reviewed every flagged outlier before any commit was made:
lib/index.jsandREADME.mdand confirmed the missing keyword (or trailing period) reflects stale metadata rather than a deliberate semantic difference. Verdict on all 15 outliers:confirmed-drift.test/test.js,examples/index.js, or sibling package documentation references the affected metadata in a way that would require a cascading change. Verdict on all 15 outliers:safe(mechanical, no cascade).confirmed-drift.What was deliberately excluded from this pass:
C APIsandSee Also— conditional or optional, not enforceable as a single majority pattern.@seetag drift — borderline majority and non-mechanical (would require per-package research for the right reference link).singlekeyword inherited byln-halfand any other extras that are not part of the majority set — outside the scope of an additive metadata pass.constants/*namespace.The full local audit report (per-feature distributions, full outlier lists, drop reasons, and the random seed) is preserved at
~/drift-reports/drift-constants-float16-2026-04-29.md.Process notes
This PR was opened on branch
claude/compassionate-ritchie-CuGzQbecause the harness pre-assigned that branch for this session; the routine's preferredphilipp/drift-<namespace>-<date>form is documented in the local report.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored end-to-end by Claude Code running the cross-package API drift detection routine. Random namespace selection, structural feature extraction, majority-vote computation, and three-agent validation (two opus, one sonnet) ran automatically; the per-package metadata edits, commits, and PR body were composed by Claude Code based on the validated drift findings. A human maintainer should audit before promoting from draft.
@stdlib-js/reviewers
Generated by Claude Code